package com.argushealth.huang.cglib;

/**
 * 
 * @author guozhuhuang
 *
 */
public class ProxyTest {

	public static void main(String[] args) {
		Person huang = (Person) new ProxyAgent().getInstance(new MrHuang(27, "Huang"));
		Person li = (Person) new ProxyAgent().getInstance(new MrsLi(28, "Li"));
		System.out.println(huang.getName() + "-" + huang.getAge());
		System.out.println("--------------------------------------------");
		System.out.println(li.getName() + "-" + li.getAge());
	}
}
